/*    */ package com.zimbra.cs.servlet;
/*    */ 
/*    */ import javax.servlet.ServletRequest;
/*    */ import javax.servlet.ServletResponse;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import org.eclipse.jetty.http.PathMap;
/*    */ import org.eclipse.jetty.security.ServerAuthException;
/*    */ import org.eclipse.jetty.server.Authentication;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class EwsAuthenticator
/*    */   extends ZimbraAuthenticator
/*    */ {
/* 37 */   protected String urlPattern = "";
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */   public String getUrlPattern()
/*    */   {
/* 44 */     return this.urlPattern;
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */   public void setUrlPattern(String urlPattern)
/*    */   {
/* 52 */     this.urlPattern = (urlPattern == null ? "/service/extension/zimbraews/*" : urlPattern.replace("//", "/"));
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */   public String getAuthMethod()
/*    */   {
/* 60 */     return "NONE";
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public Authentication validateRequest(ServletRequest request, ServletResponse response, boolean mandatory)
/*    */     throws ServerAuthException
/*    */   {
/* 71 */     HttpServletRequest httpReq = (HttpServletRequest)request;
/* 72 */     if (PathMap.match(this.urlPattern, httpReq.getRequestURI()))
/*    */     {
/*    */ 
/* 75 */       return null;
/*    */     }
/* 77 */     return super.validateRequest(request, response, mandatory);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/servlet/EwsAuthenticator.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */